package main

import (
    "github.com/valyala/fasthttp"
    "os"
)

func main() {
    auth,err := NewJsonAuthenticator("user.json")
    if err!=nil{
        os.Exit(2)
    }
    srv := Server{authenticator: auth, basePath: "."}
    srv.Setup()
    fasthttp.ListenAndServe(":8888", srv.Handle)
}
